home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 98
/
Skunkware 98.iso
/
src
/
mail
/
pine3.96.tar.gz
/
pine3.96.tar
/
pine3.96
/
pine
/
osdep
/
makedep
< prev
next >
Wrap
Text File
|
1993-07-15
|
464b
|
27 lines
#! /bin/csh -f
#
# This only finds include dependencies 1-level deep.
# It's just a big, dumb, grep.
cp makefile makefile.bak
rm -f /tmp/inc$$
foreach i ( `/bin/ls *.ic | sed 's/.ic//'` )
echo -n ${i}.c: >> /tmp/inc$$
foreach j ( `(/bin/ls)` )
grep -s "include($j)" ${i}.ic
if ($status == 0)then
echo -n " ${j}" >> /tmp/inc$$
endif
end
echo " ${i}.ic" >> /tmp/inc$$
end
cat makefile.bas /tmp/inc$$ > makefile
rm -f /tmp/inc$$